home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / CloneNotSupportedException.java < prev    next >
Text File  |  1998-09-22  |  2KB  |  57 lines

  1. /*
  2.  * @(#)CloneNotSupportedException.java    1.4 98/07/01
  3.  *
  4.  * Copyright 1995-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.lang;
  16.  
  17. /**
  18.  * Thrown to indicate that the <code>clone</code> method in class 
  19.  * <code>Object</code> has been called to clone an object, but that 
  20.  * the object's class does not implement the <code>Cloneable</code> 
  21.  * interface. 
  22.  * <p>
  23.  * Applications that override the <code>clone</code> method can also 
  24.  * throw this exception to indicate that an object could not or 
  25.  * should not be cloned.
  26.  *
  27.  * @author  unascribed
  28.  * @version 1.4, 07/01/98
  29.  * @see     java.lang.Cloneable
  30.  * @see     java.lang.Object#clone()
  31.  * @since   JDK1.0
  32.  */
  33.  
  34. public
  35. class CloneNotSupportedException extends Exception {
  36.     /**
  37.      * Constructs a <code>CloneNotSupportedException</code> with no 
  38.      * detail message. 
  39.      *
  40.      * @since   JDK1.0
  41.      */
  42.     public CloneNotSupportedException() {
  43.     super();
  44.     }
  45.  
  46.     /**
  47.      * Constructs a <code>CloneNotSupportedException</code> with the 
  48.      * specified detail message. 
  49.      *
  50.      * @param   s   the detail message.
  51.      * @since   JDK1.0
  52.      */
  53.     public CloneNotSupportedException(String s) {
  54.     super(s);
  55.     }
  56. }
  57.